package com.mall.order.dto;

import com.mall.commons.result.AbstractRequest;
import com.mall.commons.tool.exception.ValidateException;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.apache.rocketmq.common.protocol.header.GetTopicStatsInfoRequestHeader;

/**
 * @author xudengfeng
 * @date 2020/12/23 14:13
 */

@Data
public class OrderUpdateReuqest extends AbstractRequest {

    private static final long serialVersionUID = 5081234552727899282L;
    String orderId;

    Integer status;

    @Override
    public void requestCheck() {
        if (StringUtils.isBlank(orderId)) {
            throw new ValidateException();
        }
    }
}
